<header class="header fixed clearfix navbar navbar-fixed-top">
	<div class="container">
		<div class="row">
			<div class="col-md-8">
				<div class="header-right clearfix">
					<div class="main-navigation animated">
						<nav class="navbar navbar-default navbar-fixed-top navbar-inverse" role="navigation">
						    <div class="container-fluid">

						        <div class="navbar-header">
						            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#topNavBar">
						            	<span class="sr-only">切换导航</span>
						                <span class="icon-bar"></span>
						                <span class="icon-bar"></span>
						                <span class="icon-bar"></span>
						            </button>
						            <a class="navbar-brand glyphicon" href="__ROOT__/home/Blast/blast">PIM</a>
						        </div>

						        <div class="collapse navbar-collapse scrollspy smooth-scroll" id="topNavBar">
						            <ul class="nav navbar-nav navbar-right">

					            		<li><a href="__ROOT__/home/Blast/blast">&nbsp; Search</a></li>
										<li><a href="__ROOT__/home/Browse/browse">&nbsp; Browse</a></li>
										<li><a href="__ROOT__/home/Blast/goblast">&nbsp; Blast</a></li>
										<li><a href="__ROOT__/home/Manage/manage">&nbsp; Manage</a></li>
					                	<!-- <li><a href="__ROOT__/home/Upload/uploadPage">&nbsp; Upload</a></li> -->
						                <li><a href="__ROOT__/home/Download/downloadPage">&nbsp; Downloads</a></li>
						                <li class="dropdown">
						                	<a href="#" class="dropdown-toggle" data-toggle="dropdown">
						                		&nbsp; Acount
						                		<b class="caret"></b>
						                	</a>
						                	<ul class="dropdown-menu" role="meue">
						                		<li class="user-header">Welcome, {$username}</li>
						                		<li class="user-body"></li>
						                		<li class="user-footer">
						                			<div class="pull-left">
														<a class="btn btn-default btn-flat" href="#">Record</a>
						                			</div>
						                			<div class="pull-right">
						                				<a class="btn btn-default btn-flat" href="__ROOT__/home/Login/logout">Logout</a>
						                			</div>
						                		</li>
						                	</ul>
						                </li>

						            </ul>
						        </div>
						    </div>
						</nav>
					</div>
				</div>
			</div>
		</div>
	</div>
</header>
		<include file="Public:script" />

<script>
	$('ul.dropdown-menu').click(function(e) {
		e.stopPropagation();
	});
    $(function() {
    	var whichTag = {$whichTag};
    	// console.log($('.navbar-nav li:eq(0)'));
		$('.navbar-nav li:eq(' + whichTag + ')').addClass('active');
	});
</script>
